home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / grabthegrub.swf / scripts / frame_1 / DoAction_4.as < prev    next >
Text File  |  2007-10-01  |  2KB  |  100 lines

  1. function slideMeXY(tgt, xVal, yVal, oTT, oTTy, oD)
  2. {
  3.    if(!oTT)
  4.    {
  5.       oTT = baseTweenTime;
  6.    }
  7.    if(!oTTy)
  8.    {
  9.       oTTy = baseTweenType;
  10.    }
  11.    if(!oD)
  12.    {
  13.       oD = 0;
  14.    }
  15.    tgt.tween(["_x","_y"],[xVal,yVal],oTT,oTTy,oD);
  16. }
  17. function slideMeY(tgt, val, oTT, oTTy, oD)
  18. {
  19.    if(!oTT)
  20.    {
  21.       oTT = baseTweenTime;
  22.    }
  23.    if(!oTTy)
  24.    {
  25.       oTTy = baseTweenType;
  26.    }
  27.    if(!oD)
  28.    {
  29.       oD = 0;
  30.    }
  31.    tgt.tween("_y",val,oTT,oTTy,oD);
  32. }
  33. function slideMeX(tgt, val, oTT, oTTy, oD)
  34. {
  35.    if(!oTT)
  36.    {
  37.       oTT = baseTweenTime;
  38.    }
  39.    if(!oTTy)
  40.    {
  41.       oTTy = baseTweenType;
  42.    }
  43.    if(!oD)
  44.    {
  45.       oD = 0;
  46.    }
  47.    tgt.tween("_x",val,oTT,oTTy,oD);
  48. }
  49. function alphaMe(tgt, val, oTT, oTTy, oD)
  50. {
  51.    if(!oTT)
  52.    {
  53.       oTT = baseTweenTime;
  54.    }
  55.    if(!oTTy)
  56.    {
  57.       oTTy = null;
  58.    }
  59.    if(!oD)
  60.    {
  61.       oD = 0;
  62.    }
  63.    tgt.alphaTo(val,oTT,oTTy,oD);
  64. }
  65. function dimMe(tgt, val, oTT, oTTy, oD)
  66. {
  67.    if(!oTT)
  68.    {
  69.       oTT = baseTweenTime;
  70.    }
  71.    if(!oTTy)
  72.    {
  73.       oTTy = null;
  74.    }
  75.    if(!oD)
  76.    {
  77.       oD = 0;
  78.    }
  79.    tgt.brightnessTo(val,oTT,oTTy,oD);
  80. }
  81. function enableButton(tgt, b, oTT)
  82. {
  83.    tgt.enabled = b;
  84.    if(!oTT)
  85.    {
  86.       oTT = baseTweenTime;
  87.    }
  88.    dimMe(tgt,!b ? -70 : 0,oTT);
  89. }
  90. com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts,com.mosesSupposes.fuse.PennerEasing,com.mosesSupposes.fuse.Fuse,com.mosesSupposes.fuse.FuseFMP);
  91. baseTweenTime = 1;
  92. baseTweenType = null;
  93. var hBlink = new com.mosesSupposes.fuse.Fuse();
  94. hBlink.__set__target(hero);
  95. hBlink.push({brightOffset:30,cycles:10,time:0.05});
  96. var sScore = new com.mosesSupposes.fuse.Fuse();
  97. sScore.__set__target(itemScore);
  98. sScore.push({start_alpha:100,start_scale:100,time:0.05});
  99. sScore.push({alpha:0,scale:200,time:1,delay:0.5});
  100.